#ifndef MOVEROWNETWORKEVENT_H_
#define MOVEROWNETWORKEVENT_H_

#include "NetworkEvent.h"

class MoveRowNetworkEvent : public NetworkEvent
{
public:
    struct Data
    {
        long rowId;
    };

    struct Message
    {
        Header header;
        Data data;
    };

    MoveRowNetworkEvent(long rowId);
    MoveRowNetworkEvent(const Header& header, const Data& data);
    virtual ~MoveRowNetworkEvent();

    virtual void visitRow(Row* row) const;

    virtual void* getMessageBlob();
    virtual size_t getMessageBlobSize();

private:
    Message message;
};

#endif
